import type {   CarAreaData, RuleListData, RuleListParams } from "@/types/car"
import type { PageParams } from "@/types/common"
import { request } from "@/utils/reuqest"

/**
 * 获取规则列表
 * @param { page , pageSize} params
 * @returns
 */
export const getRuleListAPI = (params: RuleListParams) => {
  return request<RuleListData>('parking/rule/list', 'GET', params)
}

// 添加规则


// 获取停车区域列表
export const getParkingAreaListAPI = (params: PageParams) => {
  return request<CarAreaData>('/parking/area/list', 'GET',params)
}